from .robject import robject
class link(robject):
    def __init__(self, json):
        robject.__init__(self, json)
        self.domain = json["data"]["domain"]
        self.banned_by = json["data"]["banned_by"]
        self.media_embed = json["data"]["media_embed"]
        self.subreddit = json["data"]["subreddit"]
        self.selftext_html = json["data"]["selftext_html"]
        self.selftext = json["data"]["selftext"]
        self.likes = json["data"]["likes"]
        self.secure_media = json["data"]["secure_media"]
        self.saved = json["data"]["saved"]
        self.id = json["data"]["id"]
        self.secure_media_embed = json["data"]["secure_media_embed"]
        self.clicked = json["data"]["clicked"]
        self.stickied = json["data"]["stickied"]
        self.author = json["data"]["author"]
        self.media = json["data"]["media"]
        self.score = json["data"]["score"]
        self.approved_by = json["data"]["approved_by"]
        self.over_18 = json["data"]["over_18"]
        self.hidden = json["data"]["hidden"]
        self.thumbnail = json["data"]["thumbnail"]
        self.subreddit_id = json["data"]["subreddit_id"]
        self.edited = json["data"]["edited"]
        self.link_flair_css_class = json["data"]["link_flair_css_class"]
        self.author_flair_css_class = json["data"]["author_flair_css_class"]
        self.downs = json["data"]["downs"]
        self.is_self = json["data"]["is_self"]
        self.permalink = json["data"]["permalink"]
        self.name = json["data"]["name"]
        self.created = json["data"]["created"]
        self.url = json["data"]["url"]
        self.author_flair_text = json["data"]["author_flair_text"]
        self.title = json["data"]["title"]
        self.created_utc = json["data"]["created_utc"]
        self.link_flair_text = json["data"]["link_flair_text"]
        self.ups = json["data"]["ups"]
        self.num_comments = json["data"]["num_comments"]
        self.num_reports = json["data"]["num_reports"]
        self.distinguished = json["data"]["distinguished"]
        if self.edited is False:
            self.edited = self.created